package com.java.random;
//4、实现抛掷色子功能
public class TestRandom {

	// Scanner s= new Scanner(System.in);
	// int n = s.nextInt();
	public int test(){
		float bb = (float) Math.random();			// 返回0.01 到1.0)的返回值
	//	System.out.println(Math.round((bb*5+1)));	// round 四舍五入整数值
		return Math.round (bb*5+1);
		
	}
	public static void main(String[] args) {
	for(int i =1;i<=6;i++) 							//投六次
	{TestRandom t =new TestRandom();
	System.out.println(t.test());}
}
}